\hypertarget{classec_1_1Singleton}{\section{ec\-:\-:Singleton$<$ T $>$ Class Template Reference}
\label{classec_1_1Singleton}\index{ec\-::\-Singleton$<$ T $>$@{ec\-::\-Singleton$<$ T $>$}}
}


单件类  




{\ttfamily \#include $<$singleton.\-h$>$}

Inheritance diagram for ec\-:\-:Singleton$<$ T $>$\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classec_1_1Singleton}
\end{center}
\end{figure}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static T \& \hyperlink{classec_1_1Singleton_a758237f51f964534f43a3b828e615c46}{instance} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$class ec\-::\-Singleton$<$ T $>$}

单件类 

继承此类实现单件 

\subsection{Member Function Documentation}
\hypertarget{classec_1_1Singleton_a758237f51f964534f43a3b828e615c46}{\index{ec\-::\-Singleton@{ec\-::\-Singleton}!instance@{instance}}
\index{instance@{instance}!ec::Singleton@{ec\-::\-Singleton}}
\subsubsection[{instance}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ T \& {\bf ec\-::\-Singleton}$<$ T $>$\-::instance (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classec_1_1Singleton_a758237f51f964534f43a3b828e615c46}
获取单件实例 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
include/ec/singleton.\-h\end{DoxyCompactItemize}
